from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired, Length


class AppScchema(FlaskForm):
    query = StringField(
        "query",
        validators=[
            DataRequired(message="请求字段不能为空"),
            Length(max=2000, message="超出参数长度范围"),
        ],
    )
